package com.gao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * @author gao
 * @time 2022/11/06 10:48:04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int uid;
    private String username;
    private String password;
    private double balance;

    @TableField(select = false)
    private Set<Role> roles;
    @TableField(select = false)
    private Set<Permission> permissions;
}
